package cn.byapps.hw.entity;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
@DiscriminatorValue("H")
@AllArgsConstructor
@NoArgsConstructor
public class MaterialRequirement extends TeacherFile {
    @ManyToOne
    @JoinColumn(name = "material_id")
    private Material material;
}
